package com.gw.booking.dto.backend;

import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;

public class LoginDto {
	@ApiModelProperty(value="用户名", required = true)
	@NotEmpty
	private String name;
	
	@ApiModelProperty(value="密码", required = true)
	@NotEmpty
	private String password;
	@ApiModelProperty(value = "图片验证码", required = true)
	@NotEmpty
	private String captcha;
	@ApiModelProperty(value = "城市", required = true)
	@NotNull
	private Integer cityId;
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}

	public String getCaptcha() {
		return captcha;
	}

	public void setCaptcha(String captcha) {
		this.captcha = captcha;
	}

	public Integer getCityId() {
		return cityId;
	}

	public void setCityId(Integer cityId) {
		this.cityId = cityId;
	}
}
